//
//  ViewController.m
//  05-UI2
//
//  Created by Snow on 16/7/21.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "ViewController.h"
#import "Album.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSMutableArray *array = [NSMutableArray array];
    for (int i = 1; i < 5; i++) {
        NSString *string = [NSString stringWithFormat:@"%d.jpg", i];
        UIImage *image = [UIImage imageNamed:string];
        [array addObject:image];
    }
    Album *album = [[Album alloc] initWithFrame:self.view.bounds images:array];
    [self.view addSubview:album];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
